/* ===========================================================
			Resonance
	NPC Name: 		Lirin
	Map(s): 		Snow Island: Rien (140000000)
	Description: 	Quest - Basic Training 2
=============================================================
Version 1.0 - Script Done.(11/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("Are you not ready to hunt #o0100132#s yet? Please be well-prepared before going on a battle like this. There's nothing worse than engaging in a battle totally unprepared.");
			qm.dispose();
			return;
		}
	}
	if (status == 0)
		qm.sendAcceptDecline("Okay, shall we continue Basic Training? Are you ready for the second stage? Please check and make sure you have your sword equipped, and your potions and skills placed on the HotKeys. Once you're ready, let me know.");
	if (status == 1){
		qm.forceStartQuest();
		qm.sendNext("Okay, this time, you'll be taking on a monster that's slightly more powerful than #o0100131#, #r#o0100132##k. Head over to #b#m140020100##k and defeat #r15#k of them. That should help you regain some of your stamina.");
	} if (status == 2){
		qm.showWZEffect("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3", 1);
		qm.dispose();
	}
}

function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendOk("Oh, you were able to defeat all the Murupias like I asked you to do. You do look like you have gotten a bit stronger than before. Somewhere along the lines...of penguins flapping their wings? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i2000022# #t2000022# 20 \r\n#i2000023# #t2000023# 20 \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 450 exp");
	if(status == 1){
		qm.forceCompleteQuest();
		qm.gainItem(2000022, 20);
		qm.gainItem(2000023, 20);
		qm.gainExp(450);
		qm.sendOk("Train a bit more, and you may one day be strong enough to carry a penguin all by yourself. Now talk to me when you're ready to move on to the next level.");
		qm.dispose();
	}
}
	